package com.sell.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Xukai
 * Description:
 * CreateDate: 2018/6/25 23:59
 * Modified By:
 */
@RestController
@RequestMapping("/wechattest")
@Slf4j
public class WechatTestController {

    @GetMapping("/auth")
    public void auth(@RequestParam("code") String code) {
        log.info("进入auth方法…");
        log.info("code = {}", code);

        String url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx94c85d6deb01cf34&secret=0e7b6ecf4b97d2c10e5ce3312198d59d&code=" + code + "&grant_type=authorization_code";
    }
}
